import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/finance/admin/settlement/getList',
    method: 'post',
    data: query
  })
}
export function saveSettlement(query) {
  return request({
    url: '/finance/admin/settlement/save',
    method: 'post',
    data: query
  })
}
export function removeSettlement(query) {
  return request({
    url: '/finance/admin/settlement/remove',
    method: 'post',
    data: query
  })
}

export function getsettlementDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/finance/admin/settlement/getDetail',
    method: 'post',
    data: query
  })
}